﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VERKProjectHopur16.Models.QAViewModel>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %> 

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend></legend>
                   
            <div class="editor-label">
                <%: Html.Label(Lang.GetText("Menu","Question")) %>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Question) %>
                <%: Html.ValidationMessageFor(model => model.Question) %>
            </div>           
            
            <div class="editor-label">
                <%: Html.Label(Lang.GetText("Menu", "Department"))%>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model => model.DepartmentID, Model.Departments)%>
                <%: Html.ValidationMessageFor(model => model.DepartmentID) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label(Lang.GetText("Menu", "Email"))%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CreatorEmail) %>
                <%: Html.ValidationMessageFor(model => model.CreatorEmail) %>
            </div>
            
            <p>
                <input type="submit" value="<%: Lang.GetText("Menu", "Submit") %>" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink(Lang.GetText("Menu", "Back"), "AllQA") %>
    </div>


